var $user = require('../services/user')

module.exports = function (router) {
  router.get('/users', function * () {
    var users = yield $user.findAll()
    this.body = this.apiSuccess({users})
  })
}
